package jnpf.scheduletask;

import jnpf.base.ActionResult;
import jnpf.scheduletask.fallback.TaskApiFaccback;
import jnpf.task.model.task.TaskPagination;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

@FeignClient(name = "jnpf-scheduletask" , fallback = TaskApiFaccback.class)
public interface TaskApi {
    @PostMapping("/getList")
    ActionResult list(@RequestBody TaskPagination taskPagination) throws IOException;

}
